<?php
$_CONFIG = array();

require_once("_framework/load.framework.php");
require_once("config/loadconfig.php");

$invoicexml = new Invoice();
$invoicexml->setElado("Kulcsar Zoltan", new Address(
    "Magyarorszag",
    "Budapest",
    1118,
    "Sasadi",
    "út",
    "2"
), "60022013-1-43");
$invoicexml->setVevo("Lancaster Consulting Ltd", new Address(
    "Magyarorszag",
    "Budapest",
    1234,
    "Valami",
    "út",
    "1"
));
$invoicexml->setSzamlainfo("00000001", "2012-08-22", "2012-08-20", "2012-09-01", "Átutalás");
$invoicexml->addTetel("valami", 2000, 27);
$invoicexml->addTetel("valami2", 3000, 27);
$invoicexml->calculateOsszesites();

header("Content-type: application/xml");

echo "" . $invoicexml;
?>
